package tk.heimashuma.store.service;


import tk.heimashuma.store.entity.Commodity;
import tk.heimashuma.store.entity.Transaction;
import tk.heimashuma.store.entity.Users;

import java.util.Optional;

public interface PayService {
    Transaction findTranSaction(String t_id);

    void save(Transaction transaction);

    void paySuccess(String out_trade_no);

    Optional<Commodity> findCommodityById(Integer cid);

    Transaction createOneOrder(Commodity commodity, Integer num, Users user);

    void bindAddr(String tid, Integer aid);
}
